import baseRequest from "@/common/js/request.js"

/**
 * 获取证书列表
 */
function getCertificatePageList(params) {
	return baseRequest('/jcApi/certificate/myList', params)
}

/**
 * 获取证书详情
 * @param id
 */
function getCertificateDetail(id) {
	return baseRequest('/jcApi/certificate/detail', {id})
}

/**
 * 保存证书
 * @param params
 */
function saveCertificate(params) {
	return baseRequest(params.id? '/jcApi/certificate/edit':'/jcApi/certificate/add', params, 'POST')
}

/**
 * 删除证书
 * @param resumeIds
 */
function deleteCertificate(ids) {
	return baseRequest('/jcApi/certificate/remove/' + ids, {}, 'POST')
}

export{
	getCertificatePageList,
	getCertificateDetail,
	saveCertificate,
	deleteCertificate
}